import os
from pathlib import Path


def get_project_root() -> Path:
    """获取项目根目录"""
    current_path = os.path.dirname(os.path.abspath(__file__))
    # print("项目根目录：", os.path.dirname(current_path))
    return Path(os.path.dirname(current_path))

get_project_root = get_project_root()
if __name__ == '__main__':
    print(get_project_root)
